package com.dgt.trade.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.dgt.trade.entitys.User;


@Mapper
public interface IUserDao {
	User getUserById(long id);

	User getUserByMobile(@Param("mobile")String mobile);

	void registerUser(User user);

	void updatePwd(@Param("mobile")String mobile,@Param("pwd") String pwd);
	/**
	 * 充值成功调用
	 * @param czdq 充值的钱
	 * @param id 充值账号ID
	 * @return 执行成功失败
	 */
	Boolean iszhifu(@Param("czdq")Float czdq,@Param("id")Long id);

	Boolean istixian(@Param("txdz")Float txdz,@Param("id")Long id);
}
